package com.ldr.custom.spring.strategy;

public class StringConvertStrategy implements ConvertStrategy {
    @Override
    public boolean isSupport(Object obj){
        return obj instanceof StringConvertStrategy;
    }

    @Override
    public Object[] convert(Object[] objs) {
        for (int i = 0; i < objs.length; i++) {
            objs[i]=this.convert(objs[i]);
        }
        return objs;
    }


    @Override
    public Object convert(Object obj) {

        return String.valueOf(obj);
    }
}
